import {http} from '../utils'
exports.getBannerList = function (type) {
  return http({
    type:'get',
    url:`/Config/Banner/List?type=${type}`,
  })
}

exports.deleteBanner = function (id) {
  return http({
    type:'delete',
    url:`/Config/Banner?id=${id}`,
  })
}

exports.addBanner = function (data) {
  return http({
    type:'post',
    url:`/Config/Banner`,
    data: data
  })
}

exports.resiveBanner = function (id, data) {
  return http({
    type:'put',
    url:`/Config/Banner?id=${id}`,
    data: data
  })
}
